function showDialog(){
var width = $(window).width();
var height = $(window).height();
var scroll_top = $(document).scrollTop();
var scroll_left = $(document).scrollLeft();

$("#zhegai").css("display", "block");
$("#zhegai").css("width",$(document).width());
$("#zhegai").css("height",$(document).height());
$("#dialogDiv").css("display", "block");

$("#closeA").hover(function(){$(this).css("opacity",0.5);},function(){$(this).css("opacity",1);});

$("#dialogDiv").css("top",parseInt((height-parseInt($("#dialogDiv").css("height").replace("px","")))/2)+scroll_top);
$("#dialogDiv").css("left",parseInt((width-parseInt($("#dialogDiv").css("width").replace("px","")))/2)+scroll_left-3);
}
function closeDialog(){
	$("#zhegai").css("display", "none");
	$("#dialogDiv").css("display", "none");
}